Modeling method and apparatus

ABSTRACT

A disclosed modelling method includes: calculating a first function for generating data of a closed surface that contains plural points representing an annular structure in an object, based on positional information of the plural points; generating data of a first point set representing a boundary of the object, from tomographic image data; detecting data of points which are included in the first point set and located inside the closed surface by using the first function; removing the detected data of points from the data of the first point set to generate data of a second point set; calculating a second function for generating data of a shape of the object using the data of the second point set and data of the plural points; and storing data of the shape of the object, which is generated by using the second function, in the memory.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2014-233878, filed on Nov. 18, 2014, the entire contents of which are incorporated herein by reference.

FIELD

This invention relates to a modeling apparatus, a modeling method, and a modeling program.

BACKGROUND

Organ simulators to simulate dynamics of organs have been developed, and it is expected that such organ simulators are used for diagnosis, determination of a treatment policy, prediction of postoperative condition and the like. It is favorable that an organ shape used for simulation is analogous to an actual organ shape to the extent possible, in order to make the reliability of the simulator higher.

An organ shape differs from patient to patient, and using a uniform shape is not allowed. Therefore, an organ shape used in simulation is generated for each patient. However, because organs exist in a human body and they are invisible and directly unmeasurable, they are generated based on patient's medical images such as CT (Computed Tomography) images or MRI (Magnetic Resonance Imaging) images. A certain document discloses a technique to generate an organ shape of a patient by transforming a template representing a standard shape of an organ based on landmarks deployed on patient's medical images.

However, a technique to generate an organ shape with attention to an annular structure in the organ is unknown. For example, a heart has a pulmonary valve, an aortic valve, a mitral valve and a tricuspid valve. And an edge of each valve is called a valve annulus. Because the valve annulus plays an important role when a heart serves as a pump, generating a high-accuracy shape in the vicinity of the valve annulus makes the reliability of the simulation higher.

Patent Document 1: Japanese Laid-open Patent Publication No. 2013-015945

Non-Patent Document 1: “A Multi-scale Approach to 3D Scattered Data Interpolation with Compactly Supported Basis Functions”, Yutaka Ohtake, Alexander Belyaev, and Hans-Peter Seidel, Shape Modeling International 2003, Seoul, Korea, May 2003, pp153-161

In other words, there is no technique to generate a high-accuracy shape of an object including an annular structure.

SUMMARY

A modelling apparatus relating to this invention includes: a memory; and a processor configured to use the memory and execute a process. And the process includes: first calculating a first function for generating data of a closed surface that contains plural points that represent an annular structure in an object, based on positional information of the plural points; generating data of a first point set that represents a boundary of the object, from data of plural tomographic images in each of which a first area occupied by the object is designated; detecting data of points which are included in the first point set and located inside the closed surface by using the first function; removing the detected data of points from the data of the first point set to generate data of a second point set; second calculating a second function for generating data of a shape of the object using the data of the second point set and data of the plural points; and storing data of the shape of the object, which is generated by using the second function, in the memory.

The object and advantages of the embodiment will be realized and attained by means of the elements and combinations particularly pointed out in the claims.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the embodiment, as claimed.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a diagram depicting a functional block diagram of an information processing apparatus in a first embodiment;

FIG. 2 is a diagram for explaining landmarks;

FIG. 3 is a diagram for explaining landmarks;

FIG. 4 is a diagram for explaining segment data;

FIG. 5 is a diagram depicting main processing flow in the first embodiment;

FIG. 6 is a diagram depicting a target object in the first embodiment and landmarks;

FIG. 7 is a diagram depicting processing flow of division surface generation processing;

FIG. 8 is a diagram for explaining a division surface;

FIG. 9 is a diagram depicting processing flow of shape generation processing in the first embodiment;

FIG. 10 is a diagram for explaining inner boundary points and outer boundary points;

FIG. 11 is a diagram for explaining inner boundary points and outer boundary points;

FIG. 12 is a diagram for explaining inner boundary points and outer boundary points;

FIG. 13 is a diagram for explaining inner boundary points and outer boundary points;

FIG. 14 is a diagram depicting a boundary of the object;

FIG. 15 is a diagram depicting the object divided by the division surface;

FIG. 16 is a diagram depicting a functional block diagram of the information processing apparatus in a second embodiment;

FIG. 17 is a diagram depicting main processing flow in the second embodiment;

FIG. 18 is a diagram depicting processing flow of closed surface generation processing;

FIG. 19 is a diagram for explain a closed surface;

FIG. 20 is a diagram depicting processing flow of shape generation processing in the second embodiment;

FIG. 21 is a diagram depicting a point set representing a boundary of the object;

FIG. 22 is a diagram depicting the boundary of the object;

FIG. 23 is a diagram for explaining the division surface;

FIG. 24 is a diagram depicting a shape of the object divided by the division surface;

FIG. 25 is a diagram depicting a functional block diagram of the information processing apparatus in a third embodiment;

FIG. 26 is a diagram depicting landmarks deployed on a position of an valve annulus;

FIG. 27 is a diagram depicting main processing flow in the third embodiment;

FIG. 28 is a diagram for explaining a closed surface generated by an implicit function h₁;

FIG. 29 is a diagram depicting processing flow of the shape generation processing in the third embodiment;

FIG. 30 is a diagram depicting a point set representing a boundary of a ventricle;

FIG. 31 is a diagram depicting a modified shape;

FIG. 32 is a diagram for explaining a closed surface generated by an implicit function h₂;

FIG. 33 is a diagram depicting a modified shape; and

FIG. 34 is a functional block diagram of a computer.

DESCRIPTION OF EMBODIMENTS Embodiment 1

In the first embodiment, an example in which a shape of an object is divided by a surface that passes through landmarks deployed annularly is explained.

FIG. 1 illustrates a functional block diagram of an information processing apparatus 1 in the first embodiment. The information processing apparatus 1 includes a landmark storage unit 101, a first calculator 103, a first function storage unit 105, a segment data storage unit 107, a second calculator 109, a second function storage unit 111, a division unit 113, a data storage unit 115, and an output unit 117.

The first calculator 103 performs processing based on data stored in the landmark storage unit 101, and stores a result of the processing in the first function storage unit 105. The second calculator 109 performs processing based on data stored in the segment data storage unit 107, and stores a result of the processing in the second function storage unit 111. The division unit 113 performs processing based on data stored in the first function storage unit 105 and data stored in the second function storage unit 111, and stores a result of the processing in the data storage unit 115. The output unit 117 outputs data stored in the data storage unit 115.

FIG. 2 illustrates an example of landmarks deployed on a medical image. FIG. 2 illustrates a medical image of a ventricle, and landmarks 201 to 204 are deployed on two valve annuluses. The cut surface is almost perpendicular to a surface that passes through the valve annuluses. An interpreter of a radiogram deploys the landmarks as illustrated in FIG. 2 for plural layers of medical images. Then, when the landmarks deployed on plural layers of medical images are extracted, they are represented as illustrated in FIG. 3. In an example of FIG. 3, landmarks deployed for each of a pulmonary valve, an aortic valve, a mitral valve and a tricuspid valve. The landmark storage unit 101 stores positional information of the deployed landmarks (for example, information representing positions on a three-dimensional structured grid).

Segment data stored in the segment data storage unit 107 is data of the three-dimensional structured grid. The three-dimensional structured grid is a uniform grid of rectangular prisms. A label value “1” is given to a grid point that is located in the inside of a boundary surface of an object, and a label value “0” is given to a grid point that is located in the outside of the boundary surface of the object. Segment data is generated from medical images as illustrated in FIG. 4, in which an area corresponding to the inside of the boundary surface of the object and an area corresponding to the outside of the boundary surface of the object are designated. In an example of FIG. 4, the area corresponding to the inside of the boundary surface of the object is represented in white, and the area corresponding to the outside of the boundary surface of the object is represented in black. The designation of the areas is called segmentation, and the designation is conducted by the interpreter of a radiogram.

Next, by using FIGS. 5 to 15, processing performed by the information processing apparatus 1 in the first embodiment is explained. In order to make the explanation easy to be understood, in the first embodiment, an object and landmarks as illustrated in FIG. 6 is used for the explanation as an example. In FIG. 6, square diagrams represent the landmarks, and the landmarks are deployed annularly. The shape of the object is a cylinder shape, and a long axis direction of the object corresponds to the z-axis direction.

Firstly, the first calculator 103 of the information processing apparatus 1 performs division surface generation processing (FIG. 5: step S1). The division surface generation processing is explained by using FIGS. 7 and 8.

The first calculator 103 calculates, based on positional information of landmarks x₁, x₂, . . . , x_(i), . . . , x_(N) stored in the landmark storage unit 101, a principal unit normal vector n₁ and a unit binormal vector b₁ at each of the landmark (FIG. 7: step S11). Here, N is the number of the landmarks.

The following is the detail of the calculation in the step S1. First, x_(cl) is calculated as follows:

$x_{cl} = {\frac{1}{N}{\sum\limits_{i = 1}^{N}x_{i}}}$

Next, s_(i) are calculated based on x_(i) as follows:

$s_{i} = \left\{ \begin{matrix} \frac{x_{1} - x_{N - 1}}{{x_{1} - x_{N - 1}}} & {i = N} \\ \frac{x_{2} - x_{N}}{{x_{2} - x_{N}}} & {i = 1} \\ \frac{x_{i + 1} - x_{i - 1}}{{x_{i + 1} - x_{i - 1}}} & {otherwise} \end{matrix} \right.$

Next, n₁ tilde are calculated based on s_(i) as follows:

${\overset{\sim}{n}}_{i} = \left\{ \begin{matrix} \frac{s_{1} - s_{N - 1}}{{s_{1} - s_{N - 1}}} & {i = N} \\ \frac{s_{2} - s_{N}}{{s_{2} - s_{N}}} & {i = 1} \\ \frac{s_{i + 1} - s_{i - 1}}{{s_{i + 1} - s_{i - 1}}} & {otherwise} \end{matrix} \right.$

This calculation is performed in order to make directions of the principal normals the same. Next, n_(i) hat are calculated based on n_(i) tilde as follows:

${\hat{n}}_{i} = \left\{ \begin{matrix} {\overset{\sim}{n}}_{i} & {{{\overset{\sim}{n}}_{i} \cdot \left( {x_{i} - x_{cl}} \right)} \geq 0} \\ {- {\overset{\sim}{n}}_{i}} & {{{\overset{\sim}{n}}_{i} \cdot \left( {x_{i} - x_{cl}} \right)} < 0} \end{matrix} \right.$

This calculation is performed in order to suppress fluctuation of the principal normal vectors. Next, principal unit normal vectors n_(i) are calculated based on n_(i) hat as follows:

$n_{i} = \left\{ \begin{matrix} \frac{{\hat{n}}_{1} + {2{\hat{n}}_{N}} + {\hat{n}}_{N - 1}}{{{\hat{n}}_{1} + {2\; {\hat{n}}_{N}} + {\hat{n}}_{N - 1}}} & {i = N} \\ \frac{{\hat{n}}_{2} + {2{\hat{n}}_{1}} + {\hat{n}}_{N}}{{{\hat{n}}_{2} + {2{\hat{n}}_{1}} + {\hat{n}}_{N}}} & {i = 1} \\ \frac{{\hat{n}}_{i + 1} + {2{\hat{n}}_{i}} + {\hat{n}}_{i - 1}}{{{\overset{\sim}{n}}_{i + 1} + {2{\hat{n}}_{i}} + {\hat{n}}_{i - 1}}} & {otherwise} \end{matrix} \right.$

Next, unit binormal vectors b_(i) are calculated based on principal unit normal vectors n_(i) as follows:

$b_{i} = \left\{ \begin{matrix} \frac{n_{1} - n_{N - 1}}{{n_{1} - n_{N - 1}}} & {i = N} \\ \frac{n_{2} - n_{N}}{{n_{2} - n_{N}}} & {i = 1} \\ \frac{n_{i + 1} - n_{i - 1}}{{n_{i + 1} - n_{i - 1}}} & {otherwise} \end{matrix} \right.$

Then, the first calculator 103 generates a point set p₁, p₂, . . . , p_(j), . . . , p_(M) (step S13). In the step S13, the following point set is generated assuming that M=3N.

$p_{j} = \left\{ \begin{matrix} x_{j} & {{j = 1},\ldots \mspace{14mu},N} \\ {x_{j - N} + {ɛ_{b}b_{j - N}}} & {{j = {N + 1}},\ldots \mspace{14mu},{2N}} \\ {x_{j - {2N}} - {ɛ_{b}b_{j - {2N}}}} & {{j = {{2N} + 1}},\ldots \mspace{14mu},{3N}} \end{matrix} \right.$

In other words, the generated point set includes the landmarks, points that correspond to the landmarks shifted in a positive direction of the binormals by ε_(b), and points that correspond to the landmarks shifted in a negative direction of the binormals by ε_(b). ε_(b) is a constant number, and a number sufficiently less than a distance between the landmarks is employed. In this embodiment, assume ε_(b)=1.0.

The first calculator 103 sets a function value of an implicit function g (step S15). More specifically, the function value is set as follows. By this setting, it becomes possible to suppress occurrence of concavity and convexity on a surface formed by a point set that makes the value of the implicit function g equal to 0.

$g_{j} = \left\{ \begin{matrix} 0 & {{j = 1},\ldots \mspace{14mu},N} \\ ɛ_{b} & {{j = {N + 1}},\ldots \mspace{14mu},{2N}} \\ {- ɛ_{b}} & {{j = {{2N} + 1}},\ldots \mspace{14mu},{3N}} \end{matrix} \right.$

The first calculator 103 finds the implicit function g so that the function value becomes the value set in the step S15 (step S17), and stores data of the implicit function g in the first function storage unit 105. Then the processing returns to the calling-source processing.

In the step S17, by using TPS (Thin Plate Spline), α_(j), β₀, β₁, β₂, and β₃ are determined so that the following expressions are satisfied. Here, a basis function is φ_(j)(x)=−|x−p_(j)|.

$\begin{matrix} {{g(x)} = {{\sum\limits_{j = 1}^{M}{\alpha_{j}{\varphi_{j}(x)}}} + \beta_{0} + {\beta_{1}x} + {\beta_{2}y} + {\beta_{3}z}}} & \; \\ {{g\left( p_{j} \right)} = {g_{j} = {{\sum\limits_{j = 1}^{M}{\alpha_{j}{\varphi_{j}\left( p_{j} \right)}}} + \beta_{0} + {\beta_{1}p_{j,x}} + {\beta_{2}p_{j,y}} + {\beta_{3}p_{j,z}}}}} & (1) \\ {{\sum\limits_{j = 1}^{M}\alpha_{j}} = 0} & (2) \\ {{\sum\limits_{j = 1}^{M}{\alpha_{j}p_{j}}} = 0} & (3) \end{matrix}$

Here, simultaneous linear equations including expression (1), expression (2), and expression (3) are solved by a common solution (for example, Gaussian elimination or LU decomposition) to determine α_(j), β₀, β₁, β₂, and β₃. And assume x=(x, y, z) and p_(j)=(p_(j,x), p_(j,y), p_(j,z)).

FIG. 8 illustrates a surface formed by the point set that makes the value of the implicit function g equal to 0 (hereinafter, referred to as a division surface). In FIG. 8, the division surface 801 is represented in black. The division surface 801 passes through the landmarks x₁, x₂, . . . , x_(i), . . . , x_(N). Values of the implicit function g are positive in a positive direction of binormals for the landmarks, and values of the implicit function g are negative in a negative direction of the binormals for the landmarks. Here, in order to make a relationship between the object and the division surface easy to be understood, a part of the division surface is illustrated.

Returning to the explanation of FIG. 5, the second calculator 109 performs shape generation processing in the first embodiment (step S3). The shape generation processing in the first embodiment is explained using FIGS. 9 to 14.

Firstly, the second calculator 109 generates a point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) from the segment data stored in the segment data storage unit 107 (FIG. 9: step S21).

In the step S21, the point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) is generated as follows. Subscript v represents that the point set corresponds to a boundary of the object.

At first, of grid points that are located inside the boundary surface (in other words, grid points whose label values are 0), grid points whose at least one of adjacent grid points is located outside the boundary surface (in other words, grid points whose label value are 1) are set as inner boundary points. Here, “adjacent grid points” are 6 points that include 2 points separated from a target grid point by 1d_(x) (d_(x) is a distance between grid points in the x-axis direction) in the x-direction, 2 points separated from the target grid point by 1d_(y) (d_(y) is a distance between grid points in the y-axis direction) in the y-direction, and 2 points separated from the target grid point by 1d_(z) (d_(z) is a distance between grid points in the z-axis direction) in the z-direction. However, the number of the adjacent grid points is less than 6 if the target grid point is located on an edge of a space.

For example, segment data in a certain xy-plane is in a state as illustrated in FIG. 10. In FIG. 10, grid points located inside the boundary surface are represented by white circles, and grid points located outside the boundary surface are represented by black circles. In this case, inner boundary points are set, for example, as illustrated in FIG. 11. In FIG. 11, the inner boundary points are represented by white circles, and grid points located outside the boundary surface are represented by black circles. Here, the white circles that represent the inner boundary points are smaller than the white circles that represent the grid points located inside the boundary surface.

Next, of the grid points located outside the boundary surface, grid points whose at least one of adjacent grid points is an inner boundary point are set as outer boundary points. For example, in a state as illustrated in FIG. 11, outer boundary points are set, for example, as illustrated in FIG. 12. In FIG. 12, the inner boundary points are represented by white circles, and the outer boundary points are represented by black circles. Here, the black circles that represent the outer boundary points are smaller than the black circles that represent the grid points located outside the boundary surface.

Next, values of the inner boundary points are set to −1, and values of the outer boundary points are set to +1. For example, in a state as illustrated in FIG. 12, values are set as illustrated in FIG. 13.

Namely, points included in the point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) correspond to inner boundary points or outer boundary points.

Returning to the explanation of FIG. 9, the second calculator 109 sets a function value of an implicit function f (step S23). More specifically, the function value is set as follows:

${f\left( p_{v,j} \right)} = {f_{j} = \left\{ \begin{matrix} 1 & {{when}\mspace{14mu} p_{v,j}\mspace{14mu} {is}\mspace{14mu} {an}\mspace{14mu} {outer}\mspace{14mu} {boundary}\mspace{14mu} {point}} \\ {- 1} & {{when}\mspace{14mu} p_{v,j}\mspace{14mu} {is}\mspace{14mu} {an}\mspace{14mu} {inner}\mspace{14mu} {boundary}\mspace{14mu} {point}} \end{matrix} \right.}$

The first calculator 103 finds the implicit function f so that the function value becomes the value set in the step S23 (step S25), and stores data of the implicit function f in the second function storage unit 111. Then the processing returns to the calling-source processing.

In the step S23, the implicit function f is found using TPS. When it takes time to find the implicit function f using TPS, the implicit function f may be found by a method, for example, described in the non-patent document 1. The disclosure of the non-patent document 1 is incorporated herein by reference.

FIG. 14 illustrates a boundary formed by a point set that makes the value of the implicit function f equal to 0 (hereinafter, referred to as a 0 isosurface of the implicit function f). In FIG. 14, values of the implicit function f are negative inside the boundary (in other words, inside the cylinder), and values of the implicit function f are positive outside the boundary (in other words, outside the cylinder).

Returning to the explanation of FIG. 5, the division unit 113 performs division processing based on data of the implicit function g stored in the first function storage unit 105 and data of the implicit function f stored in the second function storage unit 111 (step S5), and stores volume data representing a divided shape in the data storage unit 115.

The division processing is processing to divide a shape represented by the 0 isosurface of the implicit function f by a 0 isosurface of the implicit function g. For example, a point set that satisfies the implicit function f=0 and the implicit function g>0 is found in the division processing, and volume data for the point set is stored in the data storage unit 115.

When the volume data is generated by the same structured grid as the segment data, firstly, a structured grid is generated using the number of grid points, voxel sizes, and origin coordinates of the segment data. Then, for each grid point, the value is set to −1 when the grid point satisfies the implicit function g>0 and the implicit function f>0, and the value is set to +1 when the grid point satisfies the implicit function g>0 and does not satisfy the implicit function f>0. Thus, two-valued volume data is generated. Moreover, mesh data may be generated by attaching mesh to the volume data by marching cubes method for example.

The output unit 117 outputs the volume data stored in the data storage unit 115 to a display device (step S7). FIG. 15 illustrates an example of displayed volume data and division surface. As illustrated in FIG. 15, the object is divided by the division surface that passes through the landmarks, and a part of the object, which satisfies the implicit function g>0, is outputted.

When a basis function of the implicit function g, and a basis function of the implicit function f, α_(j), β₀, β₁, β₂, β₃ and a composition method of the implicit function g and the implicit function f are outputted, a user himself can reproduce a display illustrated in FIG. 15. By doing this, there is an advantage that the user change the number of grid points arbitrarily when the volume data is outputted. Moreover, if the number of grid points is decreased, the size of stored volume data becomes smaller.

By performing processing described above, it becomes possible to divide an object in a part that has an annular structure. And, when this embodiment is applied to valve annulus, a boundary surface that divides a ventricle and a part other than the ventricle can be generated, and it becomes easy to extract only the ventricle or the part other than the ventricle. Thus, it becomes easy to separately set parameters for the ventricle and parameters for the part other than the ventricle. Moreover, when compared to a method to generate the ventricle or the part other than the ventricle separately and combine them, the reliability of the simulator becomes higher because a shape of combining site is analogous to an actual shape.

Embodiment 2

In the second embodiment, an example in which a shape of an object is modified according to landmarks deployed annularly is explained.

FIG. 16 illustrates a functional block diagram of the information processing apparatus 1 in the second embodiment. The information processing apparatus 1 includes the landmark storage unit 101, the first calculator 103, the first function storage unit 105, the segment data storage unit 107, the second calculator 109, a point set storage unit 110, a third calculator 119, a third function storage unit 121, a fourth calculator 123, a fourth function storage unit 125, the division unit 113, the data storage unit 115, and an output unit 117.

The first calculator 103 performs processing based on data stored in the landmark storage unit 101, and stores a result of the processing in the first function storage unit 105. The second calculator 109 performs processing based on data stored in the segment data storage unit 107, and stores a result of the processing in the point set storage unit 110. The third calculator 119 performs processing based on data stored in the landmark storage unit 101, and stores a result of the processing in the third function storage unit 121. The fourth calculator 123 performs processing based on data stored in the point set storage unit 110 and data stored in the third function storage unit 121, and stores a result of the processing in the fourth function storage unit 125. The division unit 113 performs processing based on data stored in the first function storage unit 105 and data stored in the fourth function storage unit 125, and stores a result of the processing in the data storage unit 115. The output unit 117 outputs data stored in the data storage unit 115.

Next, by using FIGS. 17 to 24, processing performed by the information processing apparatus 1 in the second embodiment is explained. Also in the second embodiment, an object and landmarks as illustrated in FIG. 6 is used for the explanation as an example.

Firstly, the third calculator 119 performs closed surface generation processing (FIG. 17: step S31). The closed surface generation processing is explained by using FIGS. 18 to 24.

The third calculator 119 calculates, based on positional information of landmarks x₁, x₂, . . . , x_(i), . . . , x_(N) stored in the landmark storage unit 101, a principal unit normal vector n_(i) and a unit binormal vector b_(i) at each of the landmark (FIG. 18: step S41). This processing is the same as the step S11 in the first embodiment, and the explanation is omitted.

Then, the third calculator 119 generates a point set p₁, p₂, . . . , p_(j), . . . , p_(M) (step S43). In the step S43, the following point set is generated assuming that M=5N.

$p_{j} = \left\{ \begin{matrix} {x_{j} + {Dn}_{j}} & {{j = 1},\ldots \mspace{14mu},N} \\ {x_{j - N} + {\left( {D + ɛ_{b}} \right)n_{j - N}}} & {{j = {N + 1}},\ldots \mspace{14mu},{2N}} \\ {x_{j - {2N}} + {\left( {D - ɛ_{b}} \right)n_{j - {2N}}}} & {{j = {{2N} + 1}},\ldots \mspace{14mu},{3N}} \\ {x_{j - {3N}} + {Dn}_{j - {3N}} + {7ɛ_{b}b_{j - {3N}}}} & {{j = {{3N} + 1}},\ldots \mspace{14mu},{4N}} \\ {x_{j - {4N}} + {Dn}_{j - {4N}} - {7ɛ_{b}b_{j - {4N}}}} & {{j = {{4N} + 1}},\ldots \mspace{14mu},{5N}} \end{matrix} \right.$

In other words, the generated point set includes points that correspond to the landmarks shifted in a positive direction of the normals by D, points that correspond to the landmarks shifted in a positive direction of the normals by (D+ε_(b)), points that correspond to the landmarks shifted in a positive direction of the normals by (D−ε_(b)), points that correspond to the landmarks shifted in a positive direction of the normals by D and shifted in a positive direction of the binormals by 7ε_(b), and points that correspond to the landmarks shifted in a positive direction of the normals by D and shifted in a negative direction of the binormals by 7ε_(b). ε_(b) is a constant number, and a number sufficiently less than a distance between the landmarks is employed. In this embodiment, assume ε_(b)=1.0. It is favorable that D is set so that a closed surface contains the landmarks and a boundary on a surface that passes through the landmarks. In this embodiment, assume D=5ε_(b).

The third calculator 119 sets a function value of an implicit function h (step S45). More specifically, the function value is set as follows. By this setting, a point set that satisfies h=0 forms the closed surface that contains the landmarks deployed annularly.

$h_{j} = \left\{ \begin{matrix} 0 & {{j = 1},\ldots \mspace{14mu},N} \\ ɛ_{b} & {{j = {N + 1}},\ldots \mspace{14mu},{2N}} \\ {- ɛ_{b}} & {{j = {{2N} + 1}},\ldots \mspace{14mu},{3N}} \\ {3ɛ_{b}} & {{j = {{3N} + 1}},\ldots \mspace{14mu},{4N}} \\ {3ɛ_{b}} & {{j = {{4N} + 1}},\ldots \mspace{14mu},{5N}} \end{matrix} \right.$

The third calculator 119 finds the implicit function h so that the function value becomes the value set in the step S45 (step S47), and stores data of the implicit function h in the third function storage unit 121. Then the processing returns to the calling-source processing. Also in the step S47, the implicit function h is found using TPS. The basic idea is the same as the processing in the step S17, the explanation is omitted.

FIG. 19 illustrates a surface formed by a point set that makes the implicit function h equal to 0 (hereinafter, referred to as a 0 isosurface of the implicit function h). In FIG. 19, square diagrams represent the landmarks, and the 0 isosurface of the implicit function h 1901 is a closed surface whose shape is an ellipsoid. The 0 isosurface of the implicit function h 1901 contains the landmarks. Values of the implicit function h are negative inside the closed surface, and values of the implicit function h are positive outside the closed surface.

Returning to the explanation of FIG. 17, the second calculator 109 and the fourth calculator 123 perform shape generation processing in the second embodiment (step S33). The shape generation processing in the second embodiment is explained using FIGS. 20 to 22.

Firstly, the second calculator 109 generates a point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) from the segment data stored in the segment data storage unit 107 (FIG. 20: step S51), stores it in the point set storage unit 110.

The point set generated in the step S51 is the same as the point set generated in the step S21. In other words, points included in the point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) correspond to inner boundary points or outer boundary points.

The fourth calculator 123 removes, of the points included in the point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) points that satisfy h<0, and generates a point set p(bar)_(v,1), p(bar)_(v,2), . . . , p(bar)_(v,j), . . . , p(bar)_(v,Mv(bar)) (step S53). The points that satisfy h<0 correspond to points that exist inside the 0 isosurface of the implicit function h. p(bar) represents a bar “-” is attached to p. Moreover, _(v,Mv(bar)) represents a bar “-” is attached to a subscript M and v.

The fourth calculator 123 adds the landmarks x₁, x₂, . . . , x_(i), . . . , x_(N) and the point set x₁±ε_(b)n₁, x₂±ε_(b)n₂, . . . , x_(i)±ε_(b)n_(i), . . . , x_(N)±ε_(b)n_(N) to the generated point set p(bar)_(v,1), p(bar)_(v,2), . . . , p(bar)_(v,j), . . . , p(bar)_(v,Mv(bar)) (step S55).

FIG. 21 illustrates an example of the generated point set. In the vicinity of the landmarks (a part illustrated by a dotted line in FIG. 21), points which are included in the point set representing the boundary of the object and are located inside the closed surface are removed, and the landmarks are added. Moreover, points corresponding to the landmarks shifted in a positive direction of the normals by ε_(b) and points corresponding to the landmarks shifted in a negative direction of the normals by ε_(b) are added in order to stabilize the shape in the vicinity of the landmarks.

The fourth calculator 123 sets a function value of the implicit function f (step S57). More specifically, the function value is set as follows:

${f\left( {\overset{\_}{p}}_{v,j} \right)} = \left\{ {{\begin{matrix} 1 & {{when}\mspace{14mu} {\overset{\_}{p}}_{v,j}\mspace{14mu} {is}\mspace{14mu} {an}\mspace{14mu} {outer}\mspace{14mu} {boundary}\mspace{14mu} {point}} \\ {- 1} & {{when}\mspace{14mu} {\overset{\_}{p}}_{v,j}\mspace{14mu} {is}\mspace{14mu} {an}\mspace{14mu} {inner}\mspace{14mu} {boundary}\mspace{14mu} {point}} \end{matrix}{f\left( x_{j} \right)}} = {{0{f\left( {x_{j} \pm {ɛ_{b}n_{j}}} \right)}} = {\pm 1}}} \right.$

The fourth calculator 123 finds the implicit function f so that the function value becomes the value set in the step S57 (step S59), and stores data of the implicit function f in the fourth function storage unit 125. Then the processing returns to the calling-source processing.

In the step S59, as well as the first embodiment, the implicit function f is found by using TPS. When it takes time to find the implicit function f using TPS, the implicit function f may be found by a method, for example, described in the non-patent document 1. The disclosure of the non-patent document 1 is incorporated herein by reference.

FIG. 22 illustrates a boundary formed by a point set that makes the value of the implicit function f equal to 0 (hereinafter, referred to as a 0 isosurface of the implicit function f). In FIG. 22, square diagrams represent the landmarks. Values of the implicit function f are negative inside the boundary (in other words, inside the cylinder), and values of the implicit function f are positive outside the boundary (in other words, outside the cylinder). The boundary is formed so as to pass through the landmarks because the function value is set as described above.

Returning to the explanation of FIG. 17, the first calculator 103 performs the division surface generation processing (FIG. 17: step S35). The division surface generation processing is the same as the one explained using FIGS. 7 and 8, the explanation is omitted. FIG. 23 illustrates a division surface generated by the division surface generation processing (in other words, a 0 isosurface of the implicit function g) and the 0 isosurface of the implicit function f. As illustrated in FIG. 23, the 0 isosurface of the implicit function g passes through the landmarks, and the object shape is divided by the 0 isosurface of the implicit function g.

The division unit 113 performs the division processing based on data of the implicit function g stored in the first function storage unit 105 and data of the implicit function f stored in the fourth function storage unit 125 (step S37), and stores volume data representing a divided shape in the data storage unit 115. The division processing in the step S37 corresponds to the division processing explained in the step S5, and the explanation is omitted.

The output unit 117 outputs the volume data stored in the data storage unit 115 to the display device (step S39). FIG. 24 illustrates an example of displayed volume data and 0 isosurface of the implicit function g. As illustrated in FIG. 24, the object is divided by a surface that passes through the landmarks. And, in the object, a part 2401 that satisfies the implicit function g<0 and a part 2402 that satisfies the implicit function g>0 are outputted.

By performing the processing as described above, the object shape becomes analogous to the actual shape because a shape of a part that has an annular structure is corrected according to the landmarks.

Embodiment 3

In the third embodiment, an example in which a shape of a ventricle is modified based on the technique explained in the first embodiment and the technique explained in the second embodiment is explained.

FIG. 25 illustrates a functional block diagram of the information processing apparatus 1 in the third embodiment. The information processing apparatus 1 includes the segment data storage unit 107, the second calculator 109, the point set storage unit 110, the landmark storage unit 101, the third calculator 119, the third function storage unit 121, the fourth calculator 123, the fourth function storage unit 125, a deletion unit 127, the data storage unit 115, and an output unit 117.

The second calculator 109 performs processing based on data stored in the segment data storage unit 107, and stores a result of the processing in the point set storage unit 110. The third calculator 119 performs processing based on data stored in the landmark storage unit 101, and stores a result of the processing in the third function storage unit 121. The fourth calculator 123 performs processing based on data stored in the point set storage unit 110 and data stored in the third function storage unit 121, and stores a result of the processing in the fourth function storage unit 125. The deletion unit 127 performs processing based on data stored in the fourth function storage unit 125 and data stored in the third function storage unit 121, and stores a result of the processing in the data storage unit 115. The output unit 117 outputs data stored in the data storage unit 115 to a display device or the like.

Next, by using FIGS. 26 to 33, processing performed by the information processing apparatus 1 in the third embodiment is explained. In the third embodiment, an object and landmarks as illustrated in FIG. 26 is used for the explanation as an example. In FIG. 26, the object is a ventricle. Square diagrams represent the landmarks, and the landmarks are deployed in the vicinity of a valve annulus. In the third embodiment, a boundary of the object is corrected according to the landmarks. Furthermore, the object shape is corrected so as to make a hole inside the valve annulus.

Firstly, the third calculator 119 performs the closed surface generation processing (FIG. 27: step S61). The closed surface generation processing is the same as the one explained in the second embodiment, a detailed explanation is omitted. In the step S61, for example, an implicit function h₁ for generating a closed surface is found assuming that ε_(b)=1.0 and D=1.0. FIG. 28 illustrates a surface formed by a point set that makes the value of the implicit function h₁ equal to 0 (hereinafter, referred to as a 0 isosurface of the implicit function h₁). In FIG. 28, square diagrams represent the landmarks, and the 0 isosurface of the implicit function h₁ 2801 corresponds to a closed surface with an ellipsoidal shape. The 0 isosurface of the implicit function h₁ 2801 contains the landmarks. Values of the implicit function h₁ are negative inside the closed surface, and values of the implicit function h₁ are positive outside the closed surface. Here, in order to make a positional relationship between the ventricle and the closed surface easy to be understood, a point set representing a boundary of the ventricle is illustrated in FIG. 28.

Then, the second calculator 109 and the fourth calculator 123 perform shape generation processing in the third embodiment (FIG. 27: step S63). The shape generation processing in the third embodiment is explained using FIGS. 29 to 31.

The second calculator 109 generates a point set p_(v,1), p_(v,2), . . . , p_(v,j), p_(v,Mv) from the segment data stored in the segment data storage unit 107 (FIG. 29: step S71) and stores it in the point set storage unit 110.

FIG. 30 illustrates an example of the point set generated in the step S71. In FIG. 30, the point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) that represents the boundary of the ventricle is generated. Square diagrams represent the landmarks. Points included in the point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) correspond to inner boundary points or outer boundary points.

The fourth calculator 123 removes, of the points included in the point set p_(v,1), p_(v,2), . . . , p_(v,j), . . . , p_(v,Mv) points that satisfy h₁<0, and generates a point set p(bar)_(v,1), p(bar)_(v,2), . . . , p(bar)_(v,j), . . . , p(bar)_(v,Mv(bar)) (step S73). The points that satisfy h<0 correspond to points that exist inside the 0 isosurface of the implicit function h₁. p(bar) represents a bar “-” is attached to p. Moreover, _(v,Mv(bar)) represents a bar “-” is attached to a subscript M and v.

The fourth calculator 123 adds the landmarks x₁, x₂, . . . , x_(i), . . . , x_(N) to the generated point set p(bar)_(v,1), p(bar)_(v,2), . . . , p(bar)_(v,j), . . . , p(bar)_(v,Mv(bar)) (step S75).

In the third embodiment, x₁±ε_(b)n₁, x₂±ε_(b)n₂, . . . , x_(i)±ε_(b)n_(i), . . . , x_(N)±ε_(b)n_(N) are not added to the point set. This is because there are points in the vicinity of the landmarks.

The fourth calculator 123 sets a function value of the implicit function f (step S77). More specifically, the function value is set as follows:

${f\left( {\overset{\_}{p}}_{v,j} \right)} = \left\{ {{\begin{matrix} 1 & {{when}\mspace{14mu} {\overset{\_}{p}}_{v,j}\mspace{14mu} {is}\mspace{14mu} {an}\mspace{14mu} {outer}\mspace{14mu} {boundary}\mspace{14mu} {point}} \\ {- 1} & {{when}\mspace{14mu} {\overset{\_}{p}}_{v,j}\mspace{14mu} {is}\mspace{14mu} {an}\mspace{14mu} {inner}\mspace{14mu} {boundary}\mspace{14mu} {point}} \end{matrix}{f\left( x_{j} \right)}} = 0} \right.$

The fourth calculator 123 finds the implicit function f so that the function value becomes the value set in the step S77 (step S79), and stores data of the implicit function f in the fourth function storage unit 125. Then the processing returns to the calling-source processing.

In the step S79, as well as the first and second embodiments, the implicit function f is found by using TPS. When it takes time to find the implicit function f using TPS, the implicit function f may be found by a method, for example, described in the non-patent document 1. The disclosure of the non-patent document 1 is incorporated herein by reference.

FIG. 31 illustrates a boundary formed by a point set that makes the value of the implicit function f equal to 0 (hereinafter, referred to as a 0 isosurface of the implicit function f). In FIG. 31, square diagrams represent the landmarks. Correction have been performed so that the boundary of the ventricle is located on the landmarks by the processing up to here, however, there are heart muscles also inside the landmarks (in other words, inside the valve annulus). Therefore, by the following processing, the heart muscles inside the valve annulus are removed.

Returning to the explanation of FIG. 27, the third calculator 119 performs the closed surface generation processing (step S65). The closed surface generation processing is the same as the one explained in the second embodiment, and a detailed explanation is omitted. In the step S65, an implicit function h₂ for generating a closed surface is found assuming that ε_(b)=1.0 and D=0. FIG. 32 illustrates a surface formed by a point set that makes the value of the implicit function h₂ equal to 0 (hereinafter, referred to as a 0 isosurface of the implicit function h₂). In FIG. 32, square diagrams represent the landmarks, and the 0 isosurface of the implicit function h₂ 3201 corresponds to a closed surface with an ellipsoidal shape. The 0 isosurface of the implicit function h₂ 3201 passes through the landmark because D=0. Values of the implicit function h₂ are negative inside the closed surface, and values of the implicit function h₂ are positive outside the closed surface.

Then, the deletion unit 127 performs deletion processing based on data of the implicit function h₂ stored in the third function storage unit 121 and data of the implicit function f stored in the fourth function storage unit 125 (step S67), and stores volume data representing the shape after the deletion processing in the data storage unit 115.

The deletion processing is processing to remove, of the shape represented by the 0 isosurface of the implicit function f, a portion inside the 0 isosurface of the implicit function h₂. For example, a point set that satisfies the implicit function f=0 and the implicit function h₂>0 is found in the deletion processing, and volume data for the point set is stored in the data storage unit 115.

The output unit 117 outputs the volume data stored in the data storage unit 115 to the display device or the like (step S69). FIG. 33 illustrates an example of the volume data and the landmarks. As illustrated in FIG. 33, the heart muscles that were inside the valve annulus are removed, and the inside of the valve annulus is ventricular.

Although the embodiments of this invention were explained above, this invention is not limited to those. For example, the functional block configuration of the information processing apparatus 1 which is explained above, do not always correspond to actual program module configuration.

Moreover, the configurations of the respective data storages are mere example, and may be changed. Furthermore, as for the processing flow, as long as the processing results do not change, the turns of the steps may be exchanged or the steps may be executed in parallel.

For example, in the first embodiment, the turn of the division surface generation processing and the turn of the shape generation processing may be exchanged.

Even if landmarks are not deployed annularly, these embodiments may be applied if a division surface and a closed surface that pass through the landmarks can be generated.

In addition, the aforementioned the information processing apparatus 1 is computer device as shown in FIG. 34. That is, a memory 2501 (storage device), a CPU 2503 (processor), a hard disk drive (HDD) 2505, a display controller 2507 connected to a display device 2509, a drive device 2513 for a removable disk 2511, an input unit 2515, and a communication controller 2517 for connection with a network are connected through a bus 2519 as shown in FIG. 34. An operating system (OS) and an application program for carrying out the foregoing processing in the embodiments, are stored in the HDD 2505, and when executed by the CPU 2503, they are read out from the HDD 2505 to the memory 2501. As the need arises, the CPU 2503 controls the display controller 2507, the communication controller 2517, and the drive device 2513, and causes them to perform necessary operations. Besides, intermediate processing data is stored in the memory 2501, and if necessary, it is stored in the HDD 2505. In these embodiments of this technique, the application program to realize the aforementioned processing is stored in the computer-readable, non-transitory removable disk 2511 and distributed, and then it is installed into the HDD 2505 from the drive device 2513. It may be installed into the HDD 2505 via the network such as the Internet and the communication controller 2517. In the computer as stated above, the hardware such as the CPU 2503 and the memory 2501, the OS and the necessary application programs systematically cooperate with each other, so that various functions as described above in details are realized.

The aforementioned embodiments are summarized as follows:

A modelling apparatus relating to a first aspect of these embodiments includes: a memory; and a processor configured to use the memory and execute a process. And the process includes: (A) first calculating a first function for generating a closed surface that contains plural points that represent an annular structure in an object, based on positional information of the plural points; (B) generating a first point set that represents a boundary of the object, from plural tomographic images in each of which a first area occupied by the object is designated; (C) detecting points which are included in the first point set and located inside the closed surface by using the first function; (D) removing the detected points from the first point set to generate a second point set; and (E) second calculating a second function for generating a shape of the object using the second point set and the plural points.

By performing processing described above, it becomes possible to generate a high-accuracy object shape including an annular structure, because unwanted substances when generating the annular structure are removed.

Moreover, the aforementioned modelling apparatus may further include: (F) third calculating a third function for generating a surface that passes through the plural points; and (G) dividing the shape of the object, which is generated by using the second function, by the surface generated by using the third function. By performing the processing described above, it becomes possible to separate the object at a part that has an annular structure.

Moreover, the first calculating may include: (a1) first identifying, for each of the plural points, a third point set that includes a first point separated from the point in a positive direction of a normal for the point by a first distance, a second point separated from the point in the positive direction of the normal by a second distance, a third point separated from the point in the negative direction of the normal by the second distance, a fourth point separated from the point in a positive direction of a binormal for the point by a third distance, and a fifth point separated from the point in a negative direction of the binormal by the third distance; and (a2) first setting a function value for each point included in the identified third point set to calculate the first function based on the set function values. By performing the processing as described above, it becomes possible to properly remove unwanted substances when generating the annular structure, because an ellipsoidal closed surface is generated.

Moreover, the second calculating may include: (e1) second identifying, for each of the plural points, a fourth point set that includes a sixth point separated from the point in a positive direction of a normal for the point by a fourth distance, and a seventh point separated from the point in a negative direction of the normal by the fourth distance; and (e2) second setting a function value for each point included in the fourth point set, a function value for each of the plural points, and a function value for each point included in the second point set to calculate the second function based on the set function values. By performing the processing as described above, it becomes possible to properly generate a shape in the vicinity of the annular structure.

Moreover, the third calculating may include: (f1) third identifying, for each of the plural points, a fifth point set that includes an eighth point separated from the point in a positive direction of a binormal for the point by a fifth distance, and a ninth point separated from the point in a negative direction of the binormal by the fifth distance; and (f2) third setting a function value for each point included in the fifth point set and a function value for each of the plural points to calculate the third function based on the set function values. By performing the processing as described above, it becomes possible to suppress occurrence of concavity and convexity on the surface.

Moreover, the detecting comprises: (c1) detecting points which are included in the first point set and located inside the closed surface, based on whether or not values of the first function are greater than a predetermined value. By performing the processing as described above, it becomes possible to easily detect points located inside the closed surface.

Moreover, the first point set may include points which are included in the first area and adjacent to an area other than the first area, and points which are included in the area other than the first area and adjacent to the first area. By doing this, it becomes possible to generate the point set that represents the boundary of the object.

A modelling method relating to a second aspect of these embodiments includes: (H) first calculating a first function for generating a closed surface that contains plural points that represent an annular structure in an object, based on positional information of the plural points; (I) generating a first point set that represents a boundary of the object, from plural tomographic images in each of which a first area occupied by the object is designated; (J) detecting points which are included in the first point set and located inside the closed surface by using the first function; (K) removing the detected points from the first point set to generate a second point set; (L) and second calculating a second function for generating a shape of the object using the second point set and the plural points.

A modelling apparatus relating to a third aspect of these embodiments includes circuitry or a processor configured to: (M) calculate a first function for generating a closed surface that contains plural points that represent an annular structure in an object, based on positional information of the plural points; (N) generate a first point set that represents a boundary of the object, from plural tomographic images in each of which a first area occupied by the object is designated; (O) detect points which are included in the first point set and located inside the closed surface by using the first function; (P) remove the detected points from the first point set to generate a second point set; and (Q) calculate a second function for generating a shape of the object using the second point set and the plural points.

A modelling apparatus relating to a fourth aspect of these embodiments includes: (R) a first calculator that calculates a first function for generating a closed surface that contains plural points that represent an annular structure in an object, based on positional information of the plural points; (S) a generator that generates a first point set that represents a boundary of the object, from plural tomographic images in each of which a first area occupied by the object is designated; (T) a detector that detects points which are included in the first point set and located inside the closed surface by using the first function; (U) a removing unit that removes the detected points from the first point set to generate a second point set; and (V) a second calculator that calculates a second function for generating a shape of the object using the second point set and the plural points.

Incidentally, it is possible to create a program causing a computer to execute the aforementioned processing, and such a program is stored in a computer readable storage medium or storage device such as a flexible disk, CD-ROM, DVD-ROM, magneto-optic disk, a semiconductor memory, and hard disk. In addition, the intermediate processing result is temporarily stored in a storage device such as a main memory or the like.

All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present inventions have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention. 

What is claimed is:
 1. A modeling apparatus, comprising: a memory configured to store positional information of a plurality of points; and a processor coupled to the memory and configured to execute a process, the process comprises: first calculating a first function for generating data of a closed surface that contains the plurality of points that represent an annular structure in an object, based on the positional information of the plurality of points; generating data of a first point set that represents a boundary of the object, from data of a plurality of tomographic images in each of which a first area occupied by the object is designated; detecting data of points which are included in the first point set and located inside the closed surface by using the first function; removing the detected data of points from the data of the first point set to generate data of a second point set; second calculating a second function for generating data of a shape of the object using the data of the second point set and data of the plurality of points; and storing data of the shape of the object, which is generated by using the second function, in the memory.
 2. The modeling apparatus as set forth in claim 1, wherein the process further comprises: third calculating a third function for generating data of a surface that passes through the plurality of points; and dividing the data of the shape of the object, which is stored in the memory, by the data of the surface generated by using the third function.
 3. The modeling apparatus as set forth in claim 1, wherein the first calculating comprises: first identifying, for each of the plurality of points, data of a third point set that includes a first point separated from the point in a positive direction of a normal for the point by a first distance, a second point separated from the point in the positive direction of the normal by a second distance, a third point separated from the point in the negative direction of the normal by the second distance, a fourth point separated from the point in a positive direction of a binormal for the point by a third distance, and a fifth point separated from the point in a negative direction of the binormal by the third distance; and first setting a function value for each point included in the third point set to calculate the first function based on the set function values.
 4. The modelling apparatus as set forth in claim 1, wherein the second calculating comprises: second identifying, for each of the plurality of points, data of a fourth point set that includes a sixth point separated from the point in a positive direction of a normal for the point by a fourth distance, and a seventh point separated from the point in a negative direction of the normal by the fourth distance; and second setting a function value for each point included in the fourth point set, a function value for each of the plurality of points, and a function value for each point included in the second point set to calculate the second function based on the set function values.
 5. The modelling apparatus as set forth in claim 2, wherein the third calculating comprises: third identifying, for each of the plurality of points, data of a fifth point set that includes an eighth point separated from the point in a positive direction of a binormal for the point by a fifth distance, and a ninth point separated from the point in a negative direction of the binormal by the fifth distance; and third setting a function value for each point included in the fifth point set and a function value for each of the plurality of points to calculate the third function based on the set function values.
 6. The modelling apparatus as set forth in claim 1, wherein the detecting comprises: detecting data of points which are included in the first point set and located inside the closed surface, based on whether or not values of the first function are greater than a predetermined value.
 7. The modelling apparatus as set forth in claim 1, wherein the first point set includes points which are included in the first area and adjacent to an area other than the first area, and points which are included in the area other than the first area and adjacent to the first area.
 8. A modelling method using a computer including a memory configured to store positional information of a plurality of points and a processor coupled to the memory, the modelling method comprising: first calculating, by using the processor, a first function for generating data of a closed surface that contains the plurality of points that represent an annular structure in an object, based on the positional information of the plurality of points; generating, by using the processor, data of a first point set that represents a boundary of the object, from data of a plurality of tomographic images in each of which a first area occupied by the object is designated; detecting, by using the processor, data of points which are included in the first point set and located inside the closed surface by using the first function; removing, by using the processor, the detected data of points from the first point set to generate data of a second point set; second calculating, by using the processor, a second function for generating data of a shape of the object using the data of the second point set and data of the plurality of points; and storing, by using the processor, data of the shape of the object, which is generated by using the second function, in the memory.
 9. A non-transitory computer-readable storage medium storing a program for causing a computer including a memory configured to store positional information of a plurality of points and a processor coupled to the memory to execute a process, the process comprising: first calculating, by using the processor, a first function for generating data of a closed surface that contains the plurality of points that represent an annular structure in an object, based on the positional information of the plurality of points; generating, by using the processor, data of a first point set that represents a boundary of the object, from data of a plurality of tomographic images in each of which a first area occupied by the object is designated; detecting, by using the processor, data of points which are included in the first point set and located inside the closed surface by using the first function; removing, by using the processor, the detected data of points from the first point set to generate data of a second point set; second calculating, by using the processor, a second function for generating data of a shape of the object using the data of the second point set and data of the plurality of points; and storing, by using the processor, data of the shape of the object, which is generated by using the second function, in the memory. 